package net.simflow.swf.analyzer.exec.data;

import net.simflow.swf.analyzer.network.data.Node;

public class ServiceTask {
	private int id;
	private Node node;
	private int startTime;
	private int endTime;
	private int flowStartTime;
	private int flowDeadline;

	public ServiceTask(int id, Node node, int startTime) {
		this.id = id;
		this.node = node;
		this.startTime = startTime;
	}

	public ServiceTask(int id, Node node, int startTime, int flowStartTime,
			int flowDeadline) {
		this.id = id;
		this.node = node;
		this.startTime = startTime;
		this.flowStartTime = flowStartTime;
		this.flowDeadline = flowDeadline;
	}

	public int getId() {
		return id;
	}

	public Node getNode() {
		return node;
	}

	public int getStartTime() {
		return startTime;
	}

	public int getEndTime() {
		return endTime;
	}

	public void setEndTime(int endTime) {
		this.endTime = endTime;
	}

	public int getFlowStartTime() {
		return flowStartTime;
	}

	public int getFlowDeadline() {
		return flowDeadline;
	}
}
